<template>
  
  <div id="brandEdit" class="container-fluid">
            
    <el-form ref="form" model="form" label-width="80px">
        <el-form-item label="品牌名称">
          <el-input v-model="form.brandName"></el-input>
        </el-form-item>

        <el-form-item label="英文名称">
          <el-input v-model="form.brandNameEn"></el-input>
        </el-form-item>
 

        <el-form-item>
          <el-button type="primary" @click="onSubmit">添加</el-button>
        </el-form-item>
      </el-form>    

  </div>

</template>

<script>
import axios from 'axios'

export default  {
  data(){
    return {
      form:{
        brandName:'',
        brandNameEn: ''
      }
    }
  },
  mounted(){
    
  },
  methods: {
    onSubmit(){
      axios.post("/api/brand/addBrand",this.form).then((res)=>{
        if(res.data.code==9999){
          this.$message({
                message: '添加成功',
                type: 'success'
              });
        }
      },(res)=>{

      });
    }

  }
}

</script>

<style type="text/css" >
  
</style>